package cn.sxt.yxl.head.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sxt.yxl.users.pojo.AAdmins;
import cn.sxt.yxl.users.service.IUsersService;

/**
 * 从导航页跳转至测试首页
 * @author Administrator
 *
 */
@Controller
public class NoLoginController {

	@Resource
	private IUsersService usersService;
	
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request) {
		Map<String, Object> condMap = new HashMap<>();
		List<AAdmins> adminsList = this.usersService.findCondListAdminsService(null, condMap);
		request.setAttribute("adminsList", adminsList);
		return "head/adminsList";
		
	}
	
}
